feat: add --auto flag to use the available model of "Auto"#4
feat: add --auto flag to use the available model of "Auto"#4lanternian wants to merge 2 commits into
--auto flag to use the available model of "Auto"#4Conversation
--auto flag to use the available of "auto mode"--auto flag to use the available model of "Auto"
|
Thanks @lanternian for the PR, this looks promising. Could you help add some tests before we merge? I’d like to cover the auto headers, and also the model-selection behavior when the existing Codex model is not in We should make sure |
…ide an auto-available model when the planned models' quota is exhausted.
|
Thanks for your reply. Based on your advise I make some work: I added a test In additon, When selecting Auto mode, the prompt's selectable models should only include auto-available models, preventing users from selecting non-auto-available models. In Auto mode, the When a user uses |
GitHub introduced a weekly quota. When a model’s quota is exhausted you can’t select models manually — selection must be done via Auto (automatic routing). By providing a special auto credential (the Copilot-Session-Token), we can freely request models that are available to Auto.
add
--autoflag tobypass the auto-selection routing and provide an auto-available model when the planned models' quota is exhausted.available models includes: gpt-5-mini, claude-haiku-4.5, gpt-5.4-mini, gpt-5.3-codex, gpt-4.1, gpt-4o